Represents a layout to organize sub-windows in a window. More...
Public Member Functions | |
Layout () | |
virtual | ~Layout () |
Component * | getParentComponent () const |
LAYOUT_TYPE | getType () const |
virtual void | setParentComponent (Component *parent) |
virtual void | removeComponent (Component *component)=0 |
virtual void | exportClassToTree (nkExport::Node *rootNode) override |
virtual void | exportComponentsNodeEntry (nkExport::Node *rootNode) |
virtual void | importClassFromTree (nkExport::Node *rootNode) override |
virtual void | processComponentsNodeEntry (nkExport::Node *rootNode) |
virtual void | update ()=0 |
![]() | |
Exportable () | |
virtual | ~Exportable () |
Represents a layout to organize sub-windows in a window.
nkWinUi::Layout::Layout | ( | ) |
Constructor.
|
virtual |
Destructor.
Component* nkWinUi::Layout::getParentComponent | ( | ) | const |
LAYOUT_TYPE nkWinUi::Layout::getType | ( | ) | const |
|
virtual |
Sets the component holding the layout.
parent | The component holding the layout. |
Reimplemented in nkWinUi::RelativeLayout, and nkWinUi::GridLayout.
|
pure virtual |
Removes a child component from this layout.
component | The component to remove from this layout. |
Implemented in nkWinUi::GridLayout, and nkWinUi::RelativeLayout.
|
overridevirtual |
Basic export capabilities.
rootNode | The node in which the layout will be exported. |
Implements nkExport::Exportable.
Reimplemented in nkWinUi::GridLayout.
|
virtual |
Exports a component within the layout into a tree.
rootNode | The node in which the component will be exported. |
Reimplemented in nkWinUi::GridLayout, and nkWinUi::RelativeLayout.
|
overridevirtual |
Basic importing capabilities.
rootNode | The tree to import from. |
Implements nkExport::Exportable.
Reimplemented in nkWinUi::GridLayout.
|
virtual |
Imports a component within the layout into a tree.
rootNode | The tree to import the component from. |
Reimplemented in nkWinUi::GridLayout, and nkWinUi::RelativeLayout.
|
pure virtual |
Updates the layout. Can be called because of a resize for instance.
Implemented in nkWinUi::GridLayout, and nkWinUi::RelativeLayout.